home *** CD-ROM | disk | FTP | other *** search
/ APDL Best Games 3 / APDL Best Games 3.iso / _risk / readme < prev    next >
Encoding:
Text File  |  2000-10-15  |  3.9 KB  |  124 lines

  1. !Risk : Map information      
  2. =======================      
  3.             
  4. Structure
  5. ---------
  6.  
  7. A map file can be easily created by following these
  8. steps:
  9.   a. Create an application directory (eg !map)
  10.   b. Copy !Boot, !Run, !Sprites, Gamedata and
  11.      Tempdata from another white map directory.
  12.   c. Rename the sprite in !sprites to agree with the
  13.      map name
  14.   d. Create your map in a sprite called original and
  15.      save as file Sprites this map can be of any
  16.      size, unfortunately however I have not tried to
  17.      create a map larger than the screen. The sprite
  18.      must be created in mode 13.
  19.   e. Using the information given later create a file
  20.      Mapdata of filetype &436
  21.   f. Test it
  22.   g. If it works send me a copy, I'll then try to
  23.      distribute it to registered users. 
  24.   h. Send it to the PD library you got your copy
  25.      from.
  26. * Note if you're running a PD library you can delete
  27.   section h if you like, or add some suitable
  28.   comment.
  29.  
  30. If you have any queries contact me at
  31.  
  32.    Steve Bosman
  33.    116 Flemming Avenue
  34.    Leigh-on-sea
  35.    Essex
  36.    SS9 3AX
  37.  
  38.  
  39. Mapdata info
  40. ------------
  41.           
  42. Appendix A contains a fragment of the program code
  43. required to load a map, whose location is given by
  44. the system variable <RiskMap$Dir>. Currently a map
  45. is limited to a maximum of fifty territories divided
  46. between a maximum of ten regions. Unfortunately
  47. because I am used to FORTRAN 77 arrays, position 0
  48. is hardly ever used. The variables used are :
  49.  
  50.   numberofterritories%    should be between 6 and 50 inclusive
  51.   numberofregions%        should be between 1 and 10 inclusive
  52.   territory$(50)          names of territories
  53.   territoryinfo%(0,50)    # neighbouring territories
  54.   territoryinfo%(20,50)   neighbouring territories
  55.   territorycol%(50)       colour of territory on map (NOT !paint colour)
  56.   territorytint%(50)      tint of territory on map
  57.   territoryflood%(50)     number of sections making
  58.                           territory (max. 6) this
  59.                           allows for islands (see
  60.                           Greenland on !World map) 
  61.   territoryfloodx%(6,50)  x position for flood
  62.   territoryfloody%(6,50)  y position for flood
  63.   numberx%(50)            x position for placing
  64.                           number of units
  65.   numbery%(50)            y position for placing
  66.                           number of units
  67.   region%(10)             number of last territory
  68.                           in region
  69.   region$(10)             name of region
  70.   regionalbonus%(10)      bonus for possessing an
  71.                           entire region
  72.  
  73. Sprite info
  74. -----------
  75.  
  76. A map sprite should be called 'original' and saved
  77. by itself in a file called Sprites in the Map
  78. directory. All territories on a newly created map
  79. should be in different colours. Also there should be
  80. definite borders between them, and also between them
  81. and the sea. The sea should be colour 61 tint 192,
  82. borders colour 63 tint 192, and neutral countries
  83. (eg Mexico/Canada on !USA) should be colour 42
  84. tint 192.
  85.  
  86. Appendix A
  87. ----------
  88.  
  89. X=OPENUP("<RiskMap$Dir>.MapData")
  90. INPUT#X,numberofterritories%
  91. FOR i%=1 TO numberofterritories%
  92.   INPUT#X,territory$(i%),territoryinfo%(0,i%)
  93.   FOR j%=1 TO territoryinfo%(0,i%)
  94.     INPUT#X,territoryinfo%(j%,i%)
  95.   NEXT
  96.   INPUT#X,territorycol%(i%),territorytint%(i%)
  97.   INPUT#X,territoryflood%(i%)
  98.   FOR j%=1 TO territoryflood%(i%)
  99.     INPUT#X,territoryfloodx%(j%,i%),territoryfloody%(j%,i%)
  100.   NEXT
  101.   INPUT#X,numberx%(i%),numbery%(i%)
  102. NEXT
  103. INPUT#X,numberofregions%
  104. FOR i%=1 TO numberofregions%
  105.   INPUT#X,region%(i%),region$(i%),regionalbonus%(i%)
  106. NEXT
  107. CLOSE#X
  108.   INPUT#X,territory$(i%),territoryinfo%(0,i%)
  109.   FOR j%=1 TO territoryinfo%(0,i%)
  110.     INPUT#X,territoryinfo%(j%,i%)
  111.   NEXT
  112.   INPUT#X,territorycol%(i%),territorytint%(i%)
  113.   INPUT#X,territoryflood%(i%)
  114.   FOR j%=1 TO territoryflood%(i%)
  115.     INPUT#X,territoryfloodx%(j%,i%),territoryfloody%(j%,i%)
  116.   NEXT
  117.   INPUT#X,numberx%(i%),numbery%(i%)
  118. NEXT
  119. INPUT#X,numberofregions%
  120. FOR i%=1 TO numberofregions%
  121.   INPUT#X,region%(i%),region$(i%),regionalbonus%(i%)
  122. NEXT
  123. CLOSE#X
  124.